﻿With the ratsimp command, and entering the expression x^2/(3+x)+x, you get a simplified expression (2*x^2+3*x)/(x+3)